import { mapGetters, mapActions } from 'vuex'

export const storeMixin = {
  computed: {
    ...mapGetters([
      'currentUrl',
      'productModel',
      'pathRoute',
      'isLeftLayer',
      'logoImage',
      'systemName',
      'userInfo',
      'menuList',
      'topMenuList',
      'pageSizesG',
      'leftLayerList',
      'tagLists',
      'areaLists',
      'menuName',
      // 'mobilePage',
      'userName',
      'currentTenantId',
      'currentUserId',
      'currentSiteInfo',
      'subMenuList',
      'noticeList', // 公告列表
      'currQaEditFakeId',
      'ossInfo'
    ])
  },
  methods: {
    ...mapActions([
      'setCurrentUrl',
      'setProductModel',
      'setpathRoute',
      'changeLeftLayer',
      'setPcLogo',
      'setUserName',
      'setMenuList',
      'setTopMenuList',
      'setLeftLayerList',
      'setTagList',
      'setAreaLists',
      'setMenuName',
      'currentTenantIdFn',
      'currentUserIdFn',
      'currentSiteInfoFn',
      'setSubMenus',
      'setCurrQaEditFakeId',
      'setOssInfo'
    ])
  }
}
